<?php
/*
    evolution class
*/

require_once("config.inc.php");

class evolution {
//    public 
    private $NBMORPHS = 8;
    private $Genome = array();
    private $Morph = array();
    private $rnd;

    private $TypeTranscription = 1;
    private $MaxSeverity = 3;
    private $NbCrossover = 3;
    
    private $Parent;
    
    public function __construct() {
	$this->rnd = new random();
	$this->nGeneration = 0;
	$this->bMigration = false;
	
    }
/* Genese */
    public function genese () {
	for ( $i = 0; $i < $this->NBMORPHS; $i++) {
	    $this->Genome[$i] = new genome();
	    $this->Genome[$i]->new_ran_genome($this->rnd);
	    $this->Morph[$i] = new morph();
	    $this->Morph[$i]->new_morph($this->Genome[$i],$TypeTranscription);
	}
    }
    
    public function json () {
	
    }
    
/*  */

}


// test

$t = new evolution();
$t->genese();

?>
